package net.starwifi.duobao.web;


import net.starwifi.duobao.service.PluginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;



/**
 * Controller - 存储插件
 * 
 * @author ruoo
 * @version 1.0
 */
@Controller("adminStoragePluginController")
@RequestMapping("/storage_plugin")
public class StoragePluginController extends BaseController {

	@Autowired
	private PluginService pluginService;

	/**
	 * 列表
	 */
	@RequestMapping(value = "/list", method = RequestMethod.GET)
	public String list(ModelMap model) {
		model.addAttribute("storagePlugins", pluginService.getStoragePlugins());
		return "/storage_plugin/list";
	}

}